import 'package:pigeon/pigeon.dart';

@ConfigurePigeon(PigeonOptions(
  dartOut: './lib/wx_request.dart',
  kotlinOut: 'android/src/main/kotlin/com/ytx/flutter_ytx_plugin/WxPigeon.kt',
  kotlinOptions: KotlinOptions(
    package: 'com.ytx.flutter_ytx_plugin',
  ),
  objcHeaderOut: 'ios/Classes/WXPigeon.h',
  objcSourceOut: 'ios/Classes/WXPigeon.m',
  objcOptions: ObjcOptions(
    prefix: 'FLT',
  ),
))

@HostApi()
abstract class WXRequest {
  bool setupWxApi( String appId);
  bool checkWeChatInstallation();
  Map<String, dynamic> share(Map<String, Object> inputMap);
  Map<String, dynamic> authBy(Map<String, Object> inputMap);
}


@FlutterApi()
abstract class WXResponse {
  void onWXcall(int viewId);
}
